/*
 * Dto class 
 * Created on 6 juin 2013 ( Time 15:03:52 )
 */
// This Bean has a basic Primary Key (not composite) 

package org.demo.typeabonnement.bean;

import java.io.Serializable;

import javax.persistence.*;

import javax.validation.constraints.* ;
import org.hibernate.validator.constraints.* ;


import javax.persistence.*;

@Entity
@Table(name="typeabonnement", catalog="dbscoremanager" )
public class Typeabonnement implements Serializable
{
    private static final long serialVersionUID = 1L;

    //----------------------------------------------------------------------
    // ENTITY PRIMARY KEY ( BASED ON A SINGLE FIELD )
    //----------------------------------------------------------------------
    @Id
    @Column(name="idTypeAbonnement", nullable=false)
    private int        idtypeabonnement ;


    //----------------------------------------------------------------------
    // ENTITY FIELDS 
    //----------------------------------------------------------------------    
    @Column(name="libelleTypeAbonnement", length=254)
    private String     libelletypeabonnement ;
    @Column(name="tarifTypeAbonnement")
    private Float      tariftypeabonnement ;

    //----------------------------------------------------------------------
    // ENTITY LINKS ( RELATIONSHIP )
    //----------------------------------------------------------------------

    //----------------------------------------------------------------------
    // CONSTRUCTOR(S)
    //----------------------------------------------------------------------
    public Typeabonnement()
    {
        super();
    }
    
    //----------------------------------------------------------------------
    // GETTER & SETTER FOR THE KEY FIELD
    //----------------------------------------------------------------------
    public void setIdtypeabonnement( int value )
    {
        this.idtypeabonnement = value;
    }
    public int getIdtypeabonnement()
    {
        return this.idtypeabonnement;
    }

    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR FIELDS
    //----------------------------------------------------------------------
    //--- DATABSE MAPPING : libelleTypeAbonnement ( VARCHAR ) 
    public void setLibelletypeabonnement( String value )
    {
        this.libelletypeabonnement = value;
    }
    public String getLibelletypeabonnement()
    {
        return this.libelletypeabonnement;
    }

    //--- DATABSE MAPPING : tarifTypeAbonnement ( FLOAT ) 
    public void setTariftypeabonnement( Float value )
    {
        this.tariftypeabonnement = value;
    }
    public Float getTariftypeabonnement()
    {
        return this.tariftypeabonnement;
    }


    
    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR LINKS
    //----------------------------------------------------------------------


}
